package com.groupseven.happycampus.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepairWorkOrder {

    private Integer id;

    private String campus; //校区

    private String position; //位置

    private String department; //部门/房号

    private String applicant; //申请人

    private String phone;

    private String typeWork; //报修类型

    private String details; //详情

    private String remarks; //备注

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime; //报修时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private String endTime; //完工时间

    private String personnelId; //接单的职工的id


}
